<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据类型</title>
</head>
<body>
<script>

        /*
        string
        number
        bigInt
        boolean
        undefined
        null
        symbol
        Object
        */
    function fc() {
        var name = '小刘'
        document.write("name是" + name +"数据类型是是"+ typeof(name))
        var password ="123456"
        var userInfo = `我的名字是${name},密码是${password}`
        console.log(userInfo)
        var userName = new String("小刘")
        console.log(userName)
        console.log(name)
        var a = "a"
        var b = "A"
        var c = "0"
        var d = "1"
        console.log(a.charCodeAt())
        console.log(b.charCodeAt())
        console.log(c.charCodeAt())
        console.log(d.charCodeAt())
    }

</script>
    <button onclick="fc()">字符串类型</button>

</body>
</html>